
public class University implements Comparable{
	String uniName;
	int population;
	public University(String uniName, int population) {
		super();
		this.uniName = uniName;
		this.population = population;
	}


	public String getUniName() {
		return uniName;
	}

	public void setUniName(String uniName) {
		this.uniName = uniName;
	}

	public int getPopulation() {
		return population;
	}

	public void setPopulation(int population) {
		this.population = population;
	}

	@Override
	public int compareTo(Object o) {
		University university = (University) o;
		return this.population-university.population;
	}
}
